package com.cl.erp_2301.Service.impl;

import com.cl.erp_2301.dto.DepartmentDTO;
import com.cl.erp_2301.entity.Department;
import com.cl.erp_2301.mapper.DepartmentMapper;
import com.cl.erp_2301.Service.DepartmentService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServiceImpl implements DepartmentService {
    @Resource
    private DepartmentMapper departmentMapper;

    @Override
    public List<DepartmentDTO> listByPage() {
        return departmentMapper.listByPage();
    }

    @Override
    public void add(DepartmentDTO departmentDTO) {
        departmentMapper.add(departmentDTO);
    }


}
